<%-- 
    Document   : assignToPM
    Created on : 17/08/2011, 4:05:24 PM
    Author     : Lewis Kelly
--%>
<script language="javascript">
    function checkForm(){
        var question = document.getElementById('PM').value;
        if (question == ""){
            alert("Please fill in an ID.");
            return false;
        }
        return true;
    }
    
</script>
<%@ include file="../header.jsp" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<link rel="stylesheet" type="text/css" href="../style.css"/>

<style type="text/css">
    #dd{
        margin-left: 20px;
    }

    #pp{
        padding-left: 270px;
        padding-bottom: 30px;
        width:auto;

    }

    #pp,#t{
        border-style: none;
    }
    
    #t{
        margin-top: 10px;
        background-color: #006633;
        color: white;
        font-weight: bolder;
        width: 10px;
    }
    
    #l1 , l2{
        text-decoration: underline;
    }
</style>

<div id="content-container1">
    <div id="content">
        <h3>Input Poll Master ID</h3>
        <%Object temp = request.getParameter("pid");%>
        <div id="pp">
            <form:form method="post" commandName="assign">
                <label id="l1"><b>Poll ID you are assigning: </b></label> <br /><form:input  id="t" type="text" disabled="true" path='pollID' value='<%=temp%>'/><br /><br />
                <label id="l2"><b>Poll Master ID: </b></label><br/><form:input id="PM" path='masterID' type="text" value="2"></form:input><input type=submit value=Submit />

                </div>
        </form:form>

        <p> <input type="button" value="Back" onClick="javascript: history.go(-1)"></p>
    </div>
    <%@ include file="../footer.jsp" %>
